<?php
// +----------------------------
// | Created by PhpStorm
// +----------------------------
// | Author: YnnSon
// +----------------------------
namespace app\api\controller\v1;

use app\api\model\MemberLog as MemberLogModel;
use app\api\model\UserWeixin as UserWeixinModel;

/**
 * 积分
 * Class Member
 * @package app\api\controller\v1
 */
class Member extends BaseController
{
    /**
     * @Desc 获取会员积分
     * @return bool|float|mixed|string|null
     */
    public function getMemberData()
    {
        return UserWeixinModel::getMemberData();
    }

    /**
     * @Desc 获取会员明细
     *
     * @param int $page
     *
     * @return bool|false|\PDOStatement|string|\think\Collection
     */
    public function getMemberDetailList($page = 1)
    {
        return MemberLogModel::getMemberDetailList($page);
    }
}